package dwl.graduation.design.mapper;

import dwl.graduation.design.domain.UserInfo;
import dwl.graduation.design.domain.UserInfoExample;
import java.util.List;

import dwl.graduation.design.utils.QueryPageBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface UserInfoMapper {
    int countByExample(UserInfoExample example);

    int deleteByExample(UserInfoExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(UserInfo record);

    int insertSelective(UserInfo record);

    List<UserInfo> selectByExampleWithRowbounds(UserInfoExample example, RowBounds rowBounds);

    List<UserInfo> selectByExample(UserInfoExample example);

    UserInfo selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") UserInfo record, @Param("example") UserInfoExample example);

    int updateByExample(@Param("record") UserInfo record, @Param("example") UserInfoExample example);

    int updateByPrimaryKeySelective(UserInfo record);

    int updateByPrimaryKey(UserInfo record);

    List<UserInfo> getUserInfoList(@Param("queryPageBean")QueryPageBean queryPageBean);

    Long getListCount(@Param("queryPageBean")QueryPageBean queryPageBean);

    UserInfo findUserByUserName(@Param("userName") String userName);

    UserInfo findUserById(@Param("id")Integer id);
}